package org.geemp.game.chart.service;

import org.geemp.game.chart.mapper.ChartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author JackRen
 * @date 2021-12-03 13:51
 * @description:
 */
@Service
public class ChartService {

    @Autowired
    private ChartMapper chartMapper;


    public Map<String,Object> obtainItemNameBy(String IC_SEQ){
        List<Map<String,Object>> dataList= chartMapper.obtainDataBy(IC_SEQ);
        if (dataList==null || dataList.size() <=0) {
            return null;
        }
        return dataList.get(0);
    }

}
